<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        //基本类型方法不能改变原来的值
        var str="hello world";
        var arr=str.split();
        var a=str.split(" ");
        var b=str.split("o");
        var c=str.split("");
        console.log(arr);
        console.log(a);
        console.log(b);
        console.log(c);
    </script>
</body>
</html>